<!--
 * @Description: overflow
 * @Author: rendc
 * @Date: 2025-05-08 10:04:44
 * @LastEditors: rendc
 * @LastEditTime: 2025-05-08 10:12:01
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>overflow</title>
</head>
<style>
  /* 清除默认样式 */
  html,body{
    margin: 0;
    padding: 0;
  }
  #div1{
    border: 1px solid red;
    overflow-x:scroll;
    /* overflow-y: hidden; */
    width: 100px;
    height: 100px;
    cursor
  }
  
</style>
<body>
    <!-- <div id="div1">
    
    </div> -->
      <div id="div1">
        ABCDEFGHIJKLMOPQRSTUVWXYZABCDEFGHIJKLMOPQRSTUVWXYZ
      </div>
</body>
</html>